package com.example.demo.controller;

import com.example.demo.bean.ErrorCode;
import com.example.demo.bean.JsonData;
import com.example.demo.bean.ThisSystemException;
import com.example.demo.bean.request.LoginRequest;
import com.example.demo.bean.request.TestBean;
import com.example.demo.bean.response.LoginResponse;
import com.example.demo.netty.client.NettyClientFilter;
import com.example.demo.repository.Open;
import com.example.demo.repository.UserRepository;
import com.example.demo.table.UserTable;
import com.example.demo.utli.Ove;
import com.example.demo.utli.PhoneNumberUtil;
import com.example.demo.utli.RedisUtil;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;

import static com.example.demo.utli.PwdUtil.judgePassWord;

/**
 * 费浩东
 * 2018/11/2
 * Created by fhd
 */
@RestController
public class SwaggerController {
    @GetMapping(value = "swagger")
    public void swagger(HttpServletRequest request, HttpServletResponse response) throws Exception{
        response.sendRedirect("/swagger-ui.html");
    }

}
